package csc.daonjpa.java.domain;

import java.io.Serializable;

import java.util.Collection;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.apache.catalina.ha.backend.CollectedInfo;

/**
 * Entity class for Account table. This is a simple POJO class with annotations
 * to define mapping with DB table
 * 
 * @author nvu3
 *
 */
@Entity(name = "targetaccount")
public class TargetAccount implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "accountNumber")
	private String accountNumber;

	@Column(name = "accountOwner")
	private String accountOwner;

	@Column(name = "bank")
	private String bank;

	@Column(name = "branch")
	private String branch;

	public TargetAccount() {

	}

	public String getAccountNumber() {
		return accountNumber;
	}

	public void setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
	}

	public String getAccountOwner() {
		return accountOwner;
	}

	public void setAccountOwner(String accountOwner) {
		this.accountOwner = accountOwner;
	}

	public String getBank() {
		return bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	public String getBranch() {
		return branch;
	}

	public void setBranch(String branch) {
		this.branch = branch;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public TargetAccount(String accountNumber, String accountOwner,
			String bank, String branch) {
		super();
		this.accountNumber = accountNumber;
		this.accountOwner = accountOwner;
		this.bank = bank;
		this.branch = branch;
	}

}